<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>Title</title>
</head>
<br>

    id:<tr th:text="${user.id}"></tr></br>
    username:<tr th:text="${user.username}"></tr></br>
    状态:<tr th:text="${user.status == 0 ? '状态是0' :'其它状态'}" ></tr>
</body>
</html>